package tools

import "testing"

func TestOr(t *testing.T) {
	t.Run("no-args", func(sub *testing.T) {
		expected := ""
		result := Or[string]()
		if result != expected {
			sub.Errorf("expected `%v`, got: `%v`", expected, result)
		}
	})

	t.Run("strings", func(sub *testing.T) {
		expected := "this is a test"
		result := Or[string]("", "", "", expected)
		if result != expected {
			sub.Errorf("expected: %v, got: %v", expected, result)
		}
	})
}
